/**
 * @description 列表
 */

import GoodAttr2 from "./GoodAttr2"
import GoodAttr1 from "./GoodAttr1"
import GoodAttr3 from "./GoodAttr3"
import GoodAttr4 from "./GoodAttr4"
import GoodAttr5 from "./GoodAttr5"

let typeMap = {
  '1': GoodAttr1,
  '2': GoodAttr2,
  '3': GoodAttr3,
  '4': GoodAttr4,
  '5': GoodAttr5,
}
function GoodAttrEntry({ type, form, onConfigEvent, upateStyleEvent, blockKey }) {
  let ActCom = typeMap[type]

  return (
    <ActCom
      form={form}
      onConfigEvent={onConfigEvent}
      upateStyleEvent={upateStyleEvent}
      blockKey={blockKey}

    />
  )
}
export default GoodAttrEntry